/**
 * =========================================
 *                  ReadMe
 * 1. 本文件用于导入页面路由进行相应配置
 * 2. 本文件仅用于定义router所需要的变量信息即routes
 * 3. 本文件撰写完成后将导出（export）routes变量用于../index.js使用
 * =========================================
 */


export const routes = [
  {
    path: '/',
    component:()=>import('@/views/login/index.vue')
  },
  {
    path: '/home',
    component:()=> import('@/views/home/index.vue'),
    hidden:true,
    children:[
      {
        path:'staffManagement',
        name:'staffManagement',
        component:()=> import('@/views/StaffManagement/index.vue'),
      },
      {
        path:'warehouseManagement',
        name:'warehouseManagement',
        component:()=> import('@/views/WarehouseManagement/index.vue'),
      },
      {
        path:'employeeWork',
        name:'employeeWork',
        component:()=> import('@/views/EmployeeWork/index.vue'),
      },
      {
        path:'salaryCalculation',
        name:'salaryCalculation',
        component:()=> import('@/views/SalaryCalculation/index.vue'),
      },
    ]
  },
  // {
  //   path: '/index',
  //   component:()=>import ('@/views/Index/Index.vue'),
  //   children:[
  //     {
  //       path:'home',
  //       component:Index
  //     }
  //   ]
  // },
  // {
  //   path: '/login',
  //   component: Login
  // }
]
